<%@page contentType="text/html; charset=utf-8" %>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="${ctx}/styles/aux_window.css" rel="stylesheet" type="text/css">
<%@ include file="/commons/validation.jsp" %>
<script type="text/javascript">
	<c:if test="${ !empty isEdit}">
		parent.windowOption.flushIframe();
		parent.windowOption.closeWindowOnCheck();
	</c:if>

	var formSerial = null;
	function submitForm(){
		var flag = document.forms('layoutForm').fireEvent("onSubmit");
		if(flag){
			if(document.getElementById("keyword").value == "" || document.getElementById("keyword").value == null){
				document.getElementById("method").value = "addProjectLayout";
			}else {
				document.getElementById("method").value = "editProjectLayout";
			}
			document.forms.layoutForm.submit();
		}else {
			parent.windowOption.setButtonUsed();  //设置按钮可用
		}
	}
	/****判断是否能直接提交****/
	function allowSubmit(){
		var tempForm = $('layoutForm').serialize();
		if(tempForm == formSerial){
			return true;
		}
		return false;
	}

	function allowClose(){
		var tempForm = Form.serializeElements($('layoutForm').getInputs('text'));
		if(tempForm == formSerial){
			return true;
		}
		return false;
	}
	function init(){
		formSerial = Form.serializeElements($('layoutForm').getInputs('text'));
		<c:if test="${ !empty isSave }">
			parent.windowOption.setButtonUsed();  //设置按钮可用
		</c:if>
	}
</script>
</head>
<body onload="init();">
<form id="layoutForm" name="layoutForm" action="${ctx}/house_projectAction.do" method="post" class="required-validate">
	<input id="method" name="method"  type="hidden" value="">
	<input id="keyword" name="keyword" type="hidden" value="${projectVO.layoutVO.keyword}">
	<input name="projectId" type="hidden" value="${projectVO.layoutVO.projectId}">
	<input id="isEdit" name="isEdit" type="hidden" value="">
	<input id="isSave" name="isSave" type="hidden" value="">
  	<table width="100%" height="150px" border="0" align="center" cellpadding="5" cellspacing="0">
            <tr>
              <td><table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color">
                <tr>
                  <td class="aux_intable_td1">${key.glebeNo}</td>
                  <td class="aux_intable_require"><input name="glebeNo" value="${projectVO.layoutVO.glebeNo}" type="text" class="inputtext required" style="text-align:right" size="16" maxlength="50">
                  </td>
                  <td class="aux_intable_td1">${key.sizeGreen}</td>
                  <td class="aux_intable_td2"><input name="sizeGreen" value="<fmt:formatNumber value="${projectVO.layoutVO.sizeGreen}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000"  afterInsert="id1" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id1"></span></td>
                </tr>
                <tr>
                  <td class="aux_intable_td1">${key.sizeTotal}</td>
                  <td class="aux_intable_td2"><input name="sizeTotal" value="<fmt:formatNumber value="${projectVO.layoutVO.sizeTotal}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id4" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id4"><span id="id2"></td>
                  <td class="aux_intable_td1">${key.bldgPercent}</td>
                  <td class="aux_intable_td2"><input name="bldgPercent" value="<fmt:formatNumber value="${projectVO.layoutVO.bldgPercent}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id19" style="text-align:right" size="16" maxlength="13">
                    % <span id="id19"></span></td>
                </tr>
                <tr>
                  <td class="aux_intable_td1">${key.sizeConstruct}</td>
                  <td class="aux_intable_td2"><input name="sizeConstruct" value="<fmt:formatNumber value="${projectVO.layoutVO.sizeConstruct}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id5" style="text-align:right"  size="16" maxlength="13">
                    ㎡<span id="id5"></td>
                  <td class="aux_intable_td1">${key.density}</td>
                  <td class="aux_intable_td2"><input name="density" value="<fmt:formatNumber value="${projectVO.layoutVO.density}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id20" style="text-align:right" size="16" maxlength="13">
                    % <span id="id20"></span></td>
                </tr>
                <tr>
                  <td class="aux_intable_td1">${key.sizegroud}</td>
                  <td class="aux_intable_td2"><input name="sizegroud" value="<fmt:formatNumber value="${projectVO.layoutVO.sizegroud}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id6" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id6"></span></td>
                  <td class="aux_intable_td1">${key.greenPercent}</td>
                  <td class="aux_intable_td2"><input name="greenPercent" value="<fmt:formatNumber value="${projectVO.layoutVO.greenPercent}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id21" style="text-align:right" size="16" maxlength="13">
                    % <span id="id21"></span></td>
                </tr>
                <tr>
                  <td class="aux_intable_td1">${key.sizeUndergroud}</td>
                  <td class="aux_intable_td2"><input name="sizeUndergroud" value="<fmt:formatNumber value="${projectVO.layoutVO.sizeUndergroud}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id7" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id7"></span></td>
                  <td class="aux_intable_td1">${key.sizeLiving}</td>
                  <td class="aux_intable_td2"><input name="sizeLiving" value="<fmt:formatNumber value="${projectVO.layoutVO.sizeLiving}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id8" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id8"></span></td>
                </tr>
                <tr>
                  <td class="aux_intable_td1">${key.floorArea}</td>
                  <td class="aux_intable_td2"><input name="floorArea" value="<fmt:formatNumber value="${projectVO.layoutVO.floorArea}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id9" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id9"></span></td>
                  <td class="aux_intable_td1">${key.sizeBusiness}</td>
                  <td class="aux_intable_td2"><input name="sizeBusiness" value="<fmt:formatNumber value="${projectVO.layoutVO.sizeBusiness}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id10" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id10"></span></td>
                </tr>
                <tr>
                  <td class="aux_intable_td1">${key.sizeWay}</td>
                  <td class="aux_intable_td2"><input name="sizeWay" value="<fmt:formatNumber value="${projectVO.layoutVO.sizeWay}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id11" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id11"></span></td>
                  <td class="aux_intable_td1">${key.sizechamber}</td>
                  <td class="aux_intable_td2"><input name="sizechamber" value="<fmt:formatNumber value="${projectVO.layoutVO.sizechamber}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id12" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id12"></span></td>
                </tr>
                <tr>
                  <td class="aux_intable_td1">${key.sizeCommerce}</td>
                  <td class="aux_intable_td2"><input name="sizeCommerce" value="<fmt:formatNumber value="${projectVO.layoutVO.sizeCommerce}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id13" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id13"></span></td>
                  <td class="aux_intable_td1">${key.sizePark}</td>
                  <td class="aux_intable_td2"><input name="sizePark" value="<fmt:formatNumber value="${projectVO.layoutVO.sizePark}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id14" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id14"></span></td>
                </tr>
                <tr>
                  <td class="aux_intable_td1">${key.sizeSchool}</td>
                  <td class="aux_intable_td2"><input name="sizeSchool" value="<fmt:formatNumber value="${projectVO.layoutVO.sizeSchool}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id15" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id15"></span></td>
                  <td class="aux_intable_td1">${key.parkAmount}</td>
                  <td class="aux_intable_td2"><input name="parkAmount" value="<fmt:formatNumber value="${projectVO.layoutVO.parkAmount}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right  max-value-32767"   style="text-align:right" size="16" maxlength="5"></td>
                </tr>
                <tr>
                  <td class="aux_intable_td1">${key.sizeManagement}</td>
                  <td class="aux_intable_td2"><input name="sizeManagement" value="<fmt:formatNumber value="${projectVO.layoutVO.sizeManagement}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id16" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id16"></span></td>
                  <td class="aux_intable_td1">${key.sizeOther}</td>
                  <td class="aux_intable_td2"><input name="sizeOther" value="<fmt:formatNumber value="${projectVO.layoutVO.sizeOther}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id17" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id17"></span></td>
                </tr>
                <tr>
                  <td class="aux_intable_td1">${key.sizeUsed}</td>
                  <td class="aux_intable_td2"><input name="sizeUsed" value="<fmt:formatNumber value="${projectVO.layoutVO.sizeUsed}" pattern="#.00"/>" type="text" class="inputtext validate-number float-zero-right max-value-10000000000" afterInsert="id18" style="text-align:right" size="16" maxlength="13">
                    ㎡<span id="id18"></span></td>
                  <td class="aux_intable_td1">&nbsp;</td>
                  <td class="aux_intable_td2">&nbsp;</td>
                </tr>
              </table></td>
            </tr>
      </table>
</form>
</body>
</html>